<?php
class Question extends AppModel {
	function getRecents($number = 25, $sort = "since DESC") {
		//$conditions = "Review.model = 'Artist' AND Review.foreign_key = '".$this->id."'";
		$conditions = "all";
		$fields = "Question.id, Question.title, Question.content, Question.since";
		$this->recursive = -1;
		return $this->find($conditions, $fields, $sort, $number);
	}
	function getDetail($id){
		$this->id = $id;
		return $this->read();
	}
	
}